<?php

class DigFile_Model_File extends DigFile_Model_Resource
{
    public $type = 'file';

    public function delete($id = null, $removeFile = false) {
        if($removeFile == true) {
            unlink($this->rootPath());
        }
        // performing this test enables the function to delete files which have not been indexed
        if($this->id > 0) {
            parent::delete($id);
        }

    }
}
?>